﻿@model WebUI.Models.FilesModel
@{
    AjaxOptions ajaxOpts = new AjaxOptions
{
    UpdateTargetId = "FileDetailsGrid",
    InsertionMode = InsertionMode.Replace,
    LoadingElementId = "divLoading"
};
}
<script type="text/javascript">
    function ToggleDiv() {
        var ele = document.getElementById("filterDiv");
        if (ele.style.display == "block") {
            ele.style.display = "none";
        }
        else {
            ele.style.display = "block";
        }
    }</script>
@section Filters{
    <img alt="" src="@Links.Content.images.filter_jpg"  onclick="ToggleDiv();return false;"/>
    <div id="filterDiv" style="display: block">
        <div style="float: left">
            @using (Ajax.BeginForm(MVC.Reports.Details.FilterFileDetails(), ajaxOpts))
            {
                Html.RenderPartial(MVC.Reports.Shared.Views._Filters, Model.FilesFilter);
            }</div>
        <table>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="padding-top: 18px">
                    @{Html.RenderPartial(MVC.Reports.Filters.Views.FileTypes);}
                </td>
            </tr>
            <tr>
                <td style="padding-top: 3px">
                    @{Html.RenderPartial(MVC.Reports.Filters.Views.Hosts);}
                </td>
            </tr>
            <tr>
                <td style="padding-top: 3px">
                    @{Html.RenderPartial(MVC.Reports.Filters.Views.Policies);}
                </td>
            </tr>
            <tr>
                <td style="padding-top: 3px">
                    @{Html.RenderPartial(MVC.Reports.Filters.Views.Operations);}
                </td>
            </tr>
        </table>
    </div>
}
@section PageName{@WebUI.Resources.FileDetailsTitle}
@section Title{@Model.Title History}
<div id="divLoading" style="display: none; position: absolute; left: 50%; top: 50%;
    margin-left: -100px; margin-top: -100px">
    <img alt="" src="@Links.Content.images.loading_gif" />
</div>
<div id="FileDetailsGrid">
    @{Html.RenderPartial(MVC.Reports.Details.Views._FileDetailsGrid, Model.FilesList);}
</div>
